package top.syfy.api.jdcloud.joke.entity.dto;

/**
 * 分页参数传递对象
 *
 * @author awg
 * @date 2020/10/30 星期五
 */
public class PageDTO<T> {

    /**
     * 每一页返回的最大结果集
     */
    private Long maxResult;

    /**
     * 当前页
     */
    private Long currentPage;

    /**
     * 获取指定对象
     */
    private T t;

    public Long getMaxResult() {
        return maxResult;
    }

    public void setMaxResult(Long maxResult) {
        this.maxResult = maxResult;
    }

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    @Override
    public String toString() {
        return "PageDTO{" +
                "maxResult=" + maxResult +
                ", currentPage=" + currentPage +
                ", t=" + t +
                '}';
    }
}
